module MuIDE
class ServerInterface
  attr_accessor :splitter,:input,:output
  def initialize(p)
    @splitter = Wx::SplitterWindow::new p,-1
    idow = Wx::Panel::new @splitter,-1
    odow = Wx::Panel::new @splitter,-1
    odow.set_sizer Wx::StaticBoxSizer::new(Wx::HORIZONTAL,odow,"Output")
    idow.sizer = Wx::StaticBoxSizer::new(Wx::HORIZONTAL,idow,"Input")
    @input = Input::new(idow,-1,:size=>Wx::Size::new(-1,-1),:style=>Wx::TE_MULTILINE)
    @output = Output::new(odow,-1,:size=>Wx::Size::new(-1,-1),:style=>Wx::TE_MULTILINE)
    idow.sizer.add @input,Wx::GROW,Wx::EXPAND
    odow.sizer.add @output,Wx::GROW,Wx::EXPAND
    @splitter.set_minimum_pane_size(20)
#     @splitter.set_sash_position(400,1)
    @splitter.split_horizontally(odow, idow, 900)
    @splitter.set_sash_position(400,true)
    return @splitter
  end
end
end   